  /**
   * Generate time : 2012-06-13 16:16:20
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.ct.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCTSmsModelSendtime 
 *  
 */
public class ZMCTSmsModelSendtime extends DaoEPBase {

	private String fdKeyId = " ";		/* FD_KEY_ID*/
	private String fdModelId = " ";		/* 短信模板ID*/
	private String fdSendingTime1 = " ";		/* 定时发送时间1*/
	private String fdSendingTime2 = " ";		/* 定时发送时间2*/
	private String fdSendingTime3 = " ";		/* 定时发送时间3*/
	private String fdSendingTime4 = " ";		/* 定时发送时间4*/
	private String fdFrequency = " ";		/* 定时生成频率*/
	private String fdDate = " ";		/* 定时发送日期*/

	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("FD_KEY_ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdModelId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("短信模板ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdSendingTime1");
	eiColumn.setFieldLength(19);	
	eiColumn.setDescName("定时发送时间1");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdSendingTime2");
	eiColumn.setFieldLength(19);	
	eiColumn.setDescName("定时发送时间2");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdSendingTime3");
	eiColumn.setFieldLength(19);	
	eiColumn.setDescName("定时发送时间3");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdSendingTime4");
	eiColumn.setFieldLength(19);	
	eiColumn.setDescName("定时发送时间4");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdFrequency");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("定时生成频率");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDate");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("定时发送日期");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public ZMCTSmsModelSendtime() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - FD_KEY_ID
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - FD_KEY_ID
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	
	/**
	 * get the fdModelId - 短信模板ID
	 * @return the fdModelId
	 */
	public String getFdModelId() {
		return this.fdModelId;
	}
	
	/**
	 * set the fdModelId - 短信模板ID
	 */
	public void setFdModelId(String fdModelId) {
		this.fdModelId = fdModelId;
	}
	
	/**
	 * get the fdSendingTime1 - 定时发送时间1
	 * @return the fdSendingTime1
	 */
	public String getFdSendingTime1() {
		return this.fdSendingTime1;
	}
	
	/**
	 * set the fdSendingTime1 - 定时发送时间1
	 */
	public void setFdSendingTime1(String fdSendingTime1) {
		this.fdSendingTime1 = fdSendingTime1;
	}
	
	/**
	 * get the fdSendingTime2 - 定时发送时间2
	 * @return the fdSendingTime2
	 */
	public String getFdSendingTime2() {
		return this.fdSendingTime2;
	}
	
	/**
	 * set the fdSendingTime2 - 定时发送时间2
	 */
	public void setFdSendingTime2(String fdSendingTime2) {
		this.fdSendingTime2 = fdSendingTime2;
	}
	
	/**
	 * get the fdSendingTime3 - 定时发送时间3
	 * @return the fdSendingTime3
	 */
	public String getFdSendingTime3() {
		return this.fdSendingTime3;
	}
	
	/**
	 * set the fdSendingTime3 - 定时发送时间3
	 */
	public void setFdSendingTime3(String fdSendingTime3) {
		this.fdSendingTime3 = fdSendingTime3;
	}
	
	/**
	 * get the fdSendingTime4 - 定时发送时间4
	 * @return the fdSendingTime4
	 */
	public String getFdSendingTime4() {
		return this.fdSendingTime4;
	}
	
	/**
	 * set the fdSendingTime4 - 定时发送时间4
	 */
	public void setFdSendingTime4(String fdSendingTime4) {
		this.fdSendingTime4 = fdSendingTime4;
	}
	
	/**
	 * get the fdFrequency - 定时生成频率
	 * @return the fdFrequency
	 */
	public String getFdFrequency() {
		return this.fdFrequency;
	}
	
	/**
	 * set the fdFrequency - 定时生成频率
	 */
	public void setFdFrequency(String fdFrequency) {
		this.fdFrequency = fdFrequency;
	}
	
	/**
	 * get the fdDate - 定时发送日期
	 * @return the fdDate
	 */
	public String getFdDate() {
		return this.fdDate;
	}
	
	/**
	 * set the fdDate - 定时发送日期
	 */
	public void setFdDate(String fdDate) {
		this.fdDate = fdDate;
	}
	
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdModelId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdModelId")), fdModelId));
		setFdSendingTime1(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSendingTime1")), fdSendingTime1));
		setFdSendingTime2(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSendingTime2")), fdSendingTime2));
		setFdSendingTime3(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSendingTime3")), fdSendingTime3));
		setFdSendingTime4(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSendingTime4")), fdSendingTime4));
		setFdFrequency(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdFrequency")), fdFrequency));
		setFdDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDate")), fdDate));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdModelId",StringUtils.toString(fdModelId, eiMetadata.getMeta("fdModelId")));	
			map.put("fdSendingTime1",StringUtils.toString(fdSendingTime1, eiMetadata.getMeta("fdSendingTime1")));	
			map.put("fdSendingTime2",StringUtils.toString(fdSendingTime2, eiMetadata.getMeta("fdSendingTime2")));	
			map.put("fdSendingTime3",StringUtils.toString(fdSendingTime3, eiMetadata.getMeta("fdSendingTime3")));	
			map.put("fdSendingTime4",StringUtils.toString(fdSendingTime4, eiMetadata.getMeta("fdSendingTime4")));	
			map.put("fdFrequency",StringUtils.toString(fdFrequency, eiMetadata.getMeta("fdFrequency")));	
			map.put("fdDate",StringUtils.toString(fdDate, eiMetadata.getMeta("fdDate")));	
			
		return map;
	
	}
}